package com.tristia.entity;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "bookstores"
})
@XmlRootElement
public class Bookstores {

	@XmlElement(name="bookstore", required = true)
    protected List<Bookstore> bookstores;
	
    public Bookstores() {
    }

    public Bookstores(List<Bookstore> bookstores) {
    	setBookstores(bookstores);
	}

    public List<Bookstore> getBookstores() {
        if (bookstores == null) {
        	bookstores = new ArrayList<Bookstore>();
        }
        return this.bookstores;
    }
    
	public void setBookstores(List<Bookstore> bookstores) {
		this.bookstores = bookstores;
	}

	@Override
	public String toString() {
		return (this.bookstores != null) ? "{\"bookstores\": " + this.bookstores.toString() + "}" : "{bookstores:[]}";
	}
}
